//
//  HeartaxDetailCellB.m
//  caishuitong
//
//  Created by qiysoft on 2017/4/12.
//  Copyright © 2017年 zhangxy. All rights reserved.
//

#import "HeartaxDetailCellB.h"

@implementation HeartaxDetailCellB
{
    BOOL A;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    A = YES;
    [self setBtn];
}
- (void) setBtn {
    
    if (A) {
        [_lookBtn setTitle:@"查看全文" forState:UIControlStateNormal];
        [_udImg setImage:[UIImage imageNamed:@"pulldown.png"]];
    }else {

        [_lookBtn setTitle:@"收起全文" forState:UIControlStateNormal];
        [_udImg setImage:[UIImage imageNamed:@"pullup.png"]];
    }

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)lookBtn:(id)sender {
    A = !A;
    [self setBtn];
    [_delegate lookBtn:sender];//这里是代理调用的方法

}

@end
